/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Dominio;

import java.io.File;

/**
 *
 * @author pedro
 */
public class NoticiaFilter implements java.io.FileFilter{
    public boolean accept(File f) {
        return (!f.isDirectory() && (f.getName().toLowerCase().endsWith(".txt") || f.getName().toLowerCase().endsWith(".xml") || f.getName().toLowerCase().endsWith(".html") ||f.getName().toLowerCase().endsWith(".htm")));
    }
    
}

